// TODO: 待修改
export const APP_NAME = 'xxx管理后台';

// 按钮权限code
export const AUTH_BTN_CODE = {
  userMgt: {
    view: 'user-mgt-view',
  },
  roleMgt: {
    add: 'role-mgt-add',
    edit: 'role-mgt-edit',
    view: 'role-mgt-view',
    viewMember: 'role-mgt-view-member',
    enableDisable: 'role-mgt-enable-disable',
  },
  roleTagMgt: {
    add: 'role-tag-mgt-add',
    edit: 'role-tag-mgt-edit',
    delete: 'role-tag-mgt-delete',
  },
  accountMgt: {
    add: 'account-mgt-add',
    edit: 'account-mgt-edit',
    view: 'account-mgt-view',
    enableDisable: 'account-mgt-enable-disable',
  },
};

export const PATTERN = {
  email: /^([a-zA-Z0-9_-]+(\.?)[a-zA-Z0-9_-]+)+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
  number: /^[0-9]+$/,
  // 8-20位数字、字母、特殊符号组成
  passWord:
    /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[?~!@#$%^&*(),./';:{}+<>|=`"[\]\\_-])[\da-zA-Z?~!@#$%^&*(),./';:{}+<>|=`"[\]\\_-]{8,20}$/,
  // 正整数
  positiveInteger: /^[1-9]\d*$/,
};
